﻿
namespace Validator
{
    public class RequiredValidator : BaseValidator 
    {
        public RequiredValidator(string message, string _friendlyName = "")
            : base(message, _friendlyName)
        { }

        public override bool IsValid(object item, bool ValidateEmptyString = false)
        {
            if (string.IsNullOrEmpty((string)item))
                return false;
            else
                return true;
        }
       
    }
}
